package com.lcy.demo.client;

import com.lcy.demo.User;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.*;

/**
 * <p>创建时间：2017/4/17 11:16</p>
 *
 * @author 娄存银
 * @version 1.0
 */
public interface LocalTestService {
    @GET("api/user/{id}")
    Observable<User> getUser(@Path("id") int id);

    @POST("api/test/obj")
    @Headers({"Content-Type: application/json","Accept: application/json"})
    Observable<User> getObject(@Body User user);
}
